package com.education.platform.api.vo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
* describe: 课程评论
* @author : tomato
* @date: 2020-06-16 11:49:53.324
**/
@ApiModel()
@Getter
@Setter
@ToString
public class CommitLearnTimeVO {


    /**
     * 时长
     */
    @ApiModelProperty("观看时长（秒为单位）")
    @Min(value = 1,message = "时长应大于0")
    @NotNull(message = "时长应大于0")
	private Integer time;

    /**
     * 视频id
     */
    @ApiModelProperty("视频id")
//    @NotNull(message = "视频id不能为空")
    private Integer videoId;


}
